<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: 设备模块</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">设备模块</div>  </div>
</div><!--header-->
<div class="contents">

<p>用于管理摄像头、扬声器等设备  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_camera.html">JCMediaDeviceCamera</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_audio.html">JCMediaDeviceAudio</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_window.html">JCMediaDeviceWindow</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_audio_param.html">JCMediaDeviceAudioParam</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device.html">JCMediaDevice</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_callback.html">JCMediaDeviceCallback</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_media_device_video_canvas.html">JCMediaDeviceVideoCanvas</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:ga3d4e0c37a074d813ff1701f250b3831d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga3d4e0c37a074d813ff1701f250b3831d">JCMediaDeviceRenderMode</a> { <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga3d4e0c37a074d813ff1701f250b3831da536c2612409e34fbf614a5f22a947f4b">JCMediaDeviceRenderModeFullScreen</a>, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga3d4e0c37a074d813ff1701f250b3831da2b7b398f7d45b52fc17d4d9c552ba1a2">JCMediaDeviceRenderModeFullContent</a>, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga3d4e0c37a074d813ff1701f250b3831da23d50f1ef4ea132ce06adbf795cf89f3">JCMediaDeviceRenderModeFullAuto</a>
 }</td></tr>
<tr class="separator:ga3d4e0c37a074d813ff1701f250b3831d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c6c5198086db6570f08f4da6d23bf2a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga2c6c5198086db6570f08f4da6d23bf2a">JCMediaDeviceVideoPixelFormat</a> { <br />
&#160;&#160;<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aae05124d95aeb9a0e4d704a57fc6442f7">I420</a> = 1, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa7f87ea54de2ad4aa48194f9bd2bc31a8">IYUV</a> = 2, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa2ffc5efc1bcc2b917c00032f689597f0">RGB24</a> = 3, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aad14e7adb922b217dfe7e7446691407dd">ABGR</a> = 4, 
<br />
&#160;&#160;<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa21e8aaf307b7173f0a91bf0c0b9598b0">ARGB</a> = 5, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aaea426a787765b5d248202ab4c2373993">ARGB4444</a> = 6, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa183737a1f19f772782bc5e24cfd662e7">RGB565</a> = 7, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa66e27c375f215479d72627409ae54441">ARGB1555</a> = 8, 
<br />
&#160;&#160;<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa005765ef795b7cb15ed844ae3ddd6e69">YUY2</a> = 9, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa373823f5bde69f14118dfc02fdb78214">YV12</a> = 10, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aa3105a8b91d48757b5f216dd66e922b55">UYVY</a> = 11, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aaa40bf3124ac9b493bd9ff7115bd19e8b">MJPG</a> = 12, 
<br />
&#160;&#160;<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aaa546c7dbef03f6695d4b9ad4512cacbf">NV21</a> = 13, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aab2b3052e7b40f57c317ebb95cc8b10f4">NV12</a> = 14, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga2c6c5198086db6570f08f4da6d23bf2aae806f2c292a965ab4230bf7086d5ba54">BGRA</a> = 15
<br />
 }</td></tr>
<tr class="separator:ga2c6c5198086db6570f08f4da6d23bf2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1f14e425a8b2abadf1bf7e2e59baa158"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga1f14e425a8b2abadf1bf7e2e59baa158">JCMediaDeviceVideoCanvasRoatate</a> { <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga1f14e425a8b2abadf1bf7e2e59baa158a1be3606073c1d23c03fe81aebfad1e03">Angle0</a> = 0, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga1f14e425a8b2abadf1bf7e2e59baa158a23c8b6347a2056aac950d153bce6c1d2">Angle90</a> = 90, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga1f14e425a8b2abadf1bf7e2e59baa158a023f8a75f0887ef4744945a937cfc6ba">Angle180</a> = 180, 
<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#gga1f14e425a8b2abadf1bf7e2e59baa158a6aca7a116b5b53d86b403af4888c5c03">Angle270</a> = 270
 }</td></tr>
<tr class="separator:ga1f14e425a8b2abadf1bf7e2e59baa158"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga96a10766264f3c12af531b70cb9c9749"><td class="memItemLeft" align="right" valign="top">JCSDK_API <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga96a10766264f3c12af531b70cb9c9749">createJCMediaDevice</a> (<a class="el" href="class_j_c_client.html">JCClient</a> *client, <a class="el" href="class_j_c_media_device_callback.html">JCMediaDeviceCallback</a> *callback)</td></tr>
<tr class="separator:ga96a10766264f3c12af531b70cb9c9749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b14094d4ae4aa265fee79dc65074225"><td class="memItemLeft" align="right" valign="top">JCSDK_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga6b14094d4ae4aa265fee79dc65074225">destroyJCMediaDevice</a> ()</td></tr>
<tr class="separator:ga6b14094d4ae4aa265fee79dc65074225"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>用于管理摄像头、扬声器等设备 </p>
<h2 class="groupheader">枚举类型说明</h2>
<a id="ga3d4e0c37a074d813ff1701f250b3831d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d4e0c37a074d813ff1701f250b3831d">&#9670;&nbsp;</a></span>JCMediaDeviceRenderMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga3d4e0c37a074d813ff1701f250b3831d">JCMediaDeviceRenderMode</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>渲染方式 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga3d4e0c37a074d813ff1701f250b3831da536c2612409e34fbf614a5f22a947f4b"></a>JCMediaDeviceRenderModeFullScreen&#160;</td><td class="fielddoc"><p>铺满窗口 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga3d4e0c37a074d813ff1701f250b3831da2b7b398f7d45b52fc17d4d9c552ba1a2"></a>JCMediaDeviceRenderModeFullContent&#160;</td><td class="fielddoc"><p>全图像显示，会有黑边 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga3d4e0c37a074d813ff1701f250b3831da23d50f1ef4ea132ce06adbf795cf89f3"></a>JCMediaDeviceRenderModeFullAuto&#160;</td><td class="fielddoc"><p>自适应 </p>
</td></tr>
</table>

</div>
</div>
<a id="ga1f14e425a8b2abadf1bf7e2e59baa158"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1f14e425a8b2abadf1bf7e2e59baa158">&#9670;&nbsp;</a></span>JCMediaDeviceVideoCanvasRoatate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga1f14e425a8b2abadf1bf7e2e59baa158">JCMediaDeviceVideoCanvasRoatate</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>视频画面旋转角度 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga1f14e425a8b2abadf1bf7e2e59baa158a1be3606073c1d23c03fe81aebfad1e03"></a>Angle0&#160;</td><td class="fielddoc"><p>0 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1f14e425a8b2abadf1bf7e2e59baa158a23c8b6347a2056aac950d153bce6c1d2"></a>Angle90&#160;</td><td class="fielddoc"><p>90 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1f14e425a8b2abadf1bf7e2e59baa158a023f8a75f0887ef4744945a937cfc6ba"></a>Angle180&#160;</td><td class="fielddoc"><p>180 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga1f14e425a8b2abadf1bf7e2e59baa158a6aca7a116b5b53d86b403af4888c5c03"></a>Angle270&#160;</td><td class="fielddoc"><p>270 </p>
</td></tr>
</table>

</div>
</div>
<a id="ga2c6c5198086db6570f08f4da6d23bf2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2c6c5198086db6570f08f4da6d23bf2a">&#9670;&nbsp;</a></span>JCMediaDeviceVideoPixelFormat</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga2c6c5198086db6570f08f4da6d23bf2a">JCMediaDeviceVideoPixelFormat</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>视频像素格式 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aae05124d95aeb9a0e4d704a57fc6442f7"></a>I420&#160;</td><td class="fielddoc"><p>I420格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa7f87ea54de2ad4aa48194f9bd2bc31a8"></a>IYUV&#160;</td><td class="fielddoc"><p>IYUV格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa2ffc5efc1bcc2b917c00032f689597f0"></a>RGB24&#160;</td><td class="fielddoc"><p>RGB24格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aad14e7adb922b217dfe7e7446691407dd"></a>ABGR&#160;</td><td class="fielddoc"><p>ABGR格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa21e8aaf307b7173f0a91bf0c0b9598b0"></a>ARGB&#160;</td><td class="fielddoc"><p>ARGB格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aaea426a787765b5d248202ab4c2373993"></a>ARGB4444&#160;</td><td class="fielddoc"><p>ARGB4444格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa183737a1f19f772782bc5e24cfd662e7"></a>RGB565&#160;</td><td class="fielddoc"><p>RGB565格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa66e27c375f215479d72627409ae54441"></a>ARGB1555&#160;</td><td class="fielddoc"><p>ARGB1555格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa005765ef795b7cb15ed844ae3ddd6e69"></a>YUY2&#160;</td><td class="fielddoc"><p>YUY2格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa373823f5bde69f14118dfc02fdb78214"></a>YV12&#160;</td><td class="fielddoc"><p>YV12格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aa3105a8b91d48757b5f216dd66e922b55"></a>UYVY&#160;</td><td class="fielddoc"><p>UYVY格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aaa40bf3124ac9b493bd9ff7115bd19e8b"></a>MJPG&#160;</td><td class="fielddoc"><p>MJPG格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aaa546c7dbef03f6695d4b9ad4512cacbf"></a>NV21&#160;</td><td class="fielddoc"><p>NV21格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aab2b3052e7b40f57c317ebb95cc8b10f4"></a>NV12&#160;</td><td class="fielddoc"><p>NV12格式 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2c6c5198086db6570f08f4da6d23bf2aae806f2c292a965ab4230bf7086d5ba54"></a>BGRA&#160;</td><td class="fielddoc"><p>BGRA格式 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ga96a10766264f3c12af531b70cb9c9749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga96a10766264f3c12af531b70cb9c9749">&#9670;&nbsp;</a></span>createJCMediaDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JCSDK_API <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a>* createJCMediaDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_client.html">JCClient</a> *&#160;</td>
          <td class="paramname"><em>client</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_media_device_callback.html">JCMediaDeviceCallback</a> *&#160;</td>
          <td class="paramname"><em>callback</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建 <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 对象</p>
<p><a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>调用此方法创建 <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 对象后，期间没有调用过 <a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga6b14094d4ae4aa265fee79dc65074225">destroyJCMediaDevice</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 对象</li>
<li>调用此方法前确保 <a class="el" href="class_j_c_client.html">JCClient</a> 已完成初始化，即 <a class="el" href="class_j_c_client.html#a9c45eac84e61df792573e9a1431c2c1d">getState</a> 方法获取的状态值不等于 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a555237c15a4b12568003ebe8af59de24">JCClientReasonSDKNotInit</a></li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">client</td><td><a class="el" href="class_j_c_client.html">JCClient</a> 对象 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="class_j_c_media_device_callback.html">JCMediaDeviceCallback</a> 对象，用于回调相关通知 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">JCClient、JCMediaDeviceCallback 任意一个参数传空就会出现调用异常</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6b14094d4ae4aa265fee79dc65074225"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6b14094d4ae4aa265fee79dc65074225">&#9670;&nbsp;</a></span>destroyJCMediaDevice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JCSDK_API void destroyJCMediaDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="class_j_c_media_device.html">JCMediaDevice</a> 对象 </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
